﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/ViewPageStandart.Master" AutoEventWireup="true" CodeBehind="News.aspx.cs" Inherits="PegasCompany.News" %>

<asp:Content ID="Content3" ContentPlaceHolderID="cphTitle" runat="server">
    <asp:Literal runat="server" ID="lContentTitle" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphTitleDescription" runat="server">
    <asp:Literal runat="server" ID="lContentDescription" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
    <asp:MultiView runat="server" ID="mvCompanyMessages">
        <asp:View runat="server" ID="vMessageList">
            <asp:Repeater runat="server" ID="rptList">
                <ItemTemplate>
                    <div class="entry clearfix">
                        <h2 class="title">
                            <asp:HyperLink runat="server" ID="hlTitle" Text='<%# Eval("Title") %>' NavigateUrl='<%# String.Format("/News.aspx?id={0}", Eval("SiteContentId")) %>' />
                        </h2>
                        <p class="post-meta">
                            <span class="inner">
                                <asp:Label runat="server" ID="lInfo" Text='<%# String.Format("Дата публикации : {0}", Eval("CreateDate"))%>' />
                            </span>
                        </p>
                        <p class="post-meta" style="display: none;">
                            <span class="inner">Posted  by 
                                    <a href="#" title="Posts by admin" rel="author">admin</a>
                                on Sep 5, 2008 in 
                                    <a href="#" rel="category tag">Blog</a>, 
                                    <a href="#" rel="category tag">Design Gallery</a> | 
                                    <a href="#" title="Comment on Ut sagittis ultrices urna eget erat non">25 comments</a>
                            </span>
                        </p>

                        <asp:HyperLink runat="server" ID="hlImage" ToolTip='<%# Eval("Title") %>' NavigateUrl="#">
                                <img runat="server" src="http://www.elegantthemes.com/preview/TheCorporation/wp-content/uploads/et_temp/1-214917_185x185.jpg" class="thumbnail-post alignleft" alt='<%# Eval("Title") %>' width="164" height="164" />
                        </asp:HyperLink>

                        <asp:Literal runat="server" ID="lContent" Text='<%# Eval("Content") %>' />

                        <asp:HyperLink runat="server" ID="hlMore" CssClass="readmore" NavigateUrl='<%# String.Format("/News.aspx?id={0}", Eval("SiteContentId")) %>'>
                                <span>
                                    подробнее
                                </span>
                        </asp:HyperLink>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div class="pager">
                <asp:Literal runat="server" ID="lPager" />
            </div>
        </asp:View>
        <asp:View runat="server" ID="vMessageView">
            <div class="post clearfix">
                <asp:Panel runat="server" ID="pnlImage">
                    <img runat="server" src="http://www.elegantthemes.com/preview/TheCorporation/wp-content/uploads/et_temp/1-214917_185x185.jpg" class="thumbnail-post alignleft" alt='<%# Eval("Title") %>' width="164" height="164" />
                </asp:Panel>
                <h2 class="title">
                    <asp:Label runat="server" ID="lTitle" />
                </h2>
                <h2 class="subTitle">
                    <asp:Label runat="server" ID="lDate" />
                </h2>
                <asp:Literal runat="server" ID="lContent" />
            </div>
        </asp:View>
    </asp:MultiView>
</asp:Content>
